class AddOperation {
  int? id;
  int? customerInfoId;
  List<int>? repairBefore;
  List<int>? repairIn;
  List<int>? repairAfter;
  String? faultDescription;
  String? described;
  int? status;
  String? customerName;
  String? phoneNumber;
  String? buildingAddress;
  String? address;

  AddOperation(
      {this.id,
      this.customerInfoId,
      this.repairBefore,
      this.repairIn,
      this.repairAfter,
      this.faultDescription,
      this.described,
      this.status,
      this.customerName,
      this.phoneNumber,
      this.buildingAddress,
      this.address});

  AddOperation.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    customerInfoId = json['customerInfoId'];
    if (json['repairBefore'] != null) {
      repairBefore = json['repairBefore'].cast<int>();
    }
    if (json['repairIn'] != null) {
      repairIn = json['repairIn'].cast<int>();
    }
    if (json['repairAfter'] != null) {
      repairAfter = json['repairAfter'].cast<int>();
    }
    faultDescription = json['faultDescription'];
    described = json['described'];
    status = json['status'];
    customerName = json['customerName'];
    phoneNumber = json['phoneNumber'];
    buildingAddress = json['buildingAddress'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['customerInfoId'] = this.customerInfoId;
    data['repairBefore'] = this.repairBefore;
    data['repairIn'] = this.repairIn;
    data['repairAfter'] = this.repairAfter;
    data['faultDescription'] = this.faultDescription;
    data['described'] = this.described;
    data['status'] = this.status;
    data['customerName'] = this.customerName;
    data['phoneNumber'] = this.phoneNumber;
    data['buildingAddress'] = this.buildingAddress;
    data['address'] = this.address;
    return data;
  }
}
